package com.example.his.api.mis.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.his.api.mis.controller.form.InsertRoleForm;
import com.example.his.api.mis.controller.form.SearchRoleByPageForm;
import com.example.his.api.db.pojo.RoleEntity;
import com.example.his.api.utils.PageUtils;

import java.util.ArrayList;
import java.util.HashMap;

public interface RoleService extends IService<RoleEntity> {
    ArrayList<HashMap> searchAllRole();

    PageUtils searchByPage(SearchRoleByPageForm form);

    int insert(InsertRoleForm form);

    public HashMap searchById(int id);
    public ArrayList<Integer> searchUserIdByRoleId(int roleId);
    public int update(RoleEntity role);

    public int deleteByIds(Integer[] ids);
}
